<template>
  <div class="geek-icon">
    <svg class="icon" aria-hidden="true">
      <use :xlink:href="`#${name}`"></use>
    </svg>
  </div>
</template>
<script>
export default {
  name: 'QmIcon',
  props: {
    name: {
      type: String,
      default: ''
    }
  }
}
</script>
<style scoped lang="less">
.geek-icon {
  position: relative;
  display: inline-blok;
  width: 25px;
  height: 25px;

  .icon {
    overflow: hiden;
    width: 100%;
    height: 100%;
    vertical-align: -0.15em;
    fill: currentcolor;
    fill: @iconc;
  }
}
</style>
